import request from '@/utils/request'

const url = 'live/'

export function start(data) {
  return request({
    url: url + 'start',
    method: 'POST',
    data
  })
}

export function end(params) {
  return request({
    url: url + 'end',
    method: 'GET',
    params
  })
}

export function list() {
  return request({
    url: url + 'list',
    method: 'POST',
  })
}

export function getLive(data) {
  return request({
    url: url + 'getLive',
    method: 'POST',
    data
  })
}